package com.gaofeng.day22.a06ThreadDemo;

import com.gaofeng.day22.a05ThreadDemo.MyThread;

public class ThreadDemo {
    public static void main(String[] args) throws InterruptedException {
        MyThread t = new MyThread();
        t.setName("土豆");

        t.start();
        t.join();

        for (int i = 0; i < 10; i++) {
            System.out.println("main " + i);
        }
    }
}
